package start.invoice;

/**
 * 单位信息模型
 * 用于存储销售方和购买方信息
 */
public class PartyInfo {
    private String name;             // 名称
    private String taxpayerId;       // 纳税人识别号
    private String addressPhone;     // 地址、电话
    private String bankAccount;      // 开户行及账号

    // 构造函数
    public PartyInfo(String name, String taxpayerId, String addressPhone, String bankAccount) {
        this.name = name;
        this.taxpayerId = taxpayerId;
        this.addressPhone = addressPhone;
        this.bankAccount = bankAccount;
    }

    // Getters and Setters
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTaxpayerId() {
        return taxpayerId;
    }

    public void setTaxpayerId(String taxpayerId) {
        this.taxpayerId = taxpayerId;
    }

    public String getAddressPhone() {
        return addressPhone;
    }

    public void setAddressPhone(String addressPhone) {
        this.addressPhone = addressPhone;
    }

    public String getBankAccount() {
        return bankAccount;
    }

    public void setBankAccount(String bankAccount) {
        this.bankAccount = bankAccount;
    }
}
